//
//  AppData.h
//  cutter
//
//  Created by zhouliangfei on 16/5/3.
//  Copyright © 2016年 e360. All rights reserved.
//

/*
 mysql
 http://kasadev.e360app.cn/phpMyAdmin/
 root
 e360.cn#EDC
 */
#import "TMUtils.h"
//
#ifndef AppData_h
#define AppData_h
    #define AppDataRoot                      @"http://kasadev.e360app.cn/"
    id filterEmpty(id object);
#endif

//
//
@interface AppData : NSObject
+(id)totalToString:(id)price count:(id)count;
+(id)countToString:(id)count lable:(id)lable;
+(id)sizeToString:(id)size lable:(id)lable;
+(id)priceToString:(id)price lable:(id)lable;
+(id)areaToString:(id)area lable:(id)lable;
+(id)dateToString:(id)date lable:(id)lable;
+(id)objToString:(id)obj lable:(id)lable;
//
+(id)fromFields:(NSString*)from;
+(id)fromInsert:(NSString*)from data:(NSDictionary*)data;
+(id)fromDelete:(NSString*)from value:(id)value;
//
+(id)cacheImage:(UIImage*)image path:(NSString*)path;
+(BOOL)cacheData:(id)data table:(NSString*)table key:(NSString*)key type:(NSInteger)type;
+(BOOL)cacheCommit;
//
+(id)getPath:(id)path;
+(id)loadImage:(id)image view:(UIImageView*)view;
+(id)loadJson:(NSString*)api key:(NSString*)key data:(id)data;
+(id)loadJson:(NSString*)api key:(NSString*)key data:(id)data commit:(BOOL)commit;
//
+(id)getAllChildId:(NSArray*)data parentid:(id)parentid;
+(id)userLogin:(NSDictionary*)data;
+(id)ideaEdit:(NSDictionary*)idea;
+(id)areaList:(id)pid;
//
@end


